package www.Zheng;

import java.io.*;

/**
 * @Title: Demo9
 * @Author 郑雨杭
 * @Package www.Zheng
 * @Date 2024/7/9 12:09
 * @description:
 */
public class Demo9 {
    public static void main(String[] args){
        File file = new File("D:\\gitee仓库\\java\\File","test.txt");
        if(file.isFile() && file.exists()){
            try(Writer writer = new FileWriter(file,true)) {
                writer.write("zzzyh");
                writer.flush();
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
    }
}
